<template>
	<web-view :src="webUrl"></web-view>
</template>

<script>
	export default {
		data () {
			return {
				webUrl: '',
			}
		},
		onLoad(option) {
			console.log(option)
			if(!option.webUrl) {
				uni.showToast({
					title: '链接有误！',
					icon: 'none'
				})
				uni.navigateBack({
					delta: 1
				})
				return
			}
			this.webUrl = decodeURIComponent(option.webUrl)
			console.log(this.webUrl)
		}
	}
</script>

<style>
</style>